package com.xuchen.zhenyang.mapper.statistics;

import com.xuchen.zhenyang.model.statistics.StatisticsDeliveryQueryModel;
import com.xuchen.zhenyang.model.statistics.StatisticsGoodsSaleModel;
import com.xuchen.zhenyang.model.statistics.StatisticsUserGoodsModel;
import com.xuchen.zhenyang.model.statistics.StatisticsUserGoodsQuery;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface StatisticsMapper {

    List<StatisticsGoodsSaleModel> getMonthGoodsSale(@Param("monthTime") Integer monthTime, @Param("goodsType") Integer goodsType);

    void refreshGoodsSale();

    void refreshUserOrder();

    void refreshUserDebt();

    BigDecimal getSumDelivery(StatisticsDeliveryQueryModel queryModel);

    List<StatisticsUserGoodsModel> getUserGoods(StatisticsUserGoodsQuery queryModel);
}
